package cn.hss.object.abstractTest;

/**
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 17:08
 * @Package 包名：cn.hss.object.abstractTest
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public abstract class Employee {
	private String name;
	private Integer number;
	private MyDate birthday;

	public Employee() {
	}

	public Employee(String name, Integer number, MyDate birthday) {
		this.name = name;
		this.number = number;
		this.birthday = birthday;
	}

	//返回工资的数额
	public abstract double earnings();

	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		return "Employee{" +
				"name='" + name + '\'' +
				", number=" + number +
				", birthday=" + birthday.toDateString() +
				'}';
	}

	public void setName(final String name) {
		this.name = name;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(final Integer number) {
		this.number = number;
	}

	public MyDate getBirthday() {
		return birthday;
	}

	public void setBirthday(final MyDate birthday) {
		this.birthday = birthday;
	}
}